<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录/注册 - 招聘APP</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background-color: #f9f9f9;
            height: 100vh;
        }
        .app-container {
            max-width: 390px;
            height: 100%;
            margin: 0 auto;
            background-color: white;
        }
        .tab-nav {
            border-bottom: 1px solid #eee;
        }
        .tab-nav button {
            padding: 15px 0;
            width: 50%;
            text-align: center;
            font-weight: 500;
            color: #666;
            transition: all 0.3s;
        }
        .tab-nav button.active {
            color: #1677ff;
            border-bottom: 2px solid #1677ff;
        }
        .input-group {
            position: relative;
            margin-bottom: 20px;
        }
        .input-group input {
            width: 100%;
            padding: 15px 15px 15px 50px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-size: 16px;
            transition: all 0.3s;
        }
        .input-group input:focus {
            border-color: #1677ff;
            box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
            outline: none;
        }
        .input-group i {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
        }
        .btn-primary {
            background-color: #1677ff;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 15px;
            width: 100%;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
        }
        .btn-primary:hover {
            background-color: #0e5ecc;
        }
        .btn-outline {
            background-color: white;
            color: #1677ff;
            border: 1px solid #1677ff;
            border-radius: 8px;
            padding: 15px;
            width: 100%;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
        }
        .btn-outline:hover {
            background-color: #f0f7ff;
        }
        .social-login {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-top: 30px;
        }
        .social-login a {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: #f5f5f5;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
            transition: all 0.3s;
        }
        .social-login a:hover {
            background-color: #e0e0e0;
        }
        .bottom-nav {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-around;
            padding: 15px 0;
            background-color: white;
            border-top: 1px solid #eee;
        }
        .bottom-nav a {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #666;
            text-decoration: none;
            font-size: 12px;
        }
        .bottom-nav a i {
            font-size: 20px;
            margin-bottom: 5px;
        }
        .bottom-nav a.active {
            color: #1677ff;
        }
    </style>
</head>
<body>
    <div class="app-container relative">
        <div class="pt-10 px-6">
            <div class="text-center mb-8">
                <img src="https://images.unsplash.com/photo-1568952433726-3896e3881c65?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MTB8fGpvYnxlbnwwfHwwfHw%3D&auto=format&fit=crop&w=100&h=100&q=80" alt="Logo" class="w-20 h-20 mx-auto mb-4 rounded-xl">
                <h1 class="text-2xl font-bold text-gray-800">Kamu招聘</h1>
                <p class="text-gray-500">连接人才与企业的桥梁</p>
            </div>
            
            <div class="tab-nav flex mb-8">
                <button class="active" id="login-tab">登录</button>
                <button id="register-tab">注册</button>
            </div>
            
            <!-- 登录表单 -->
            <div id="login-form" class="mb-6">
                <div class="input-group">
                    <i class="fas fa-phone"></i>
                    <input type="tel" placeholder="请输入手机号码" maxlength="11">
                </div>
                <div class="input-group">
                    <i class="fas fa-lock"></i>
                    <input type="password" placeholder="请输入密码">
                </div>
                <div class="flex justify-between items-center mb-6">
                    <div class="flex items-center">
                        <input type="checkbox" id="remember" class="mr-2">
                        <label for="remember" class="text-sm text-gray-600">记住我</label>
                    </div>
                    <a href="#" class="text-sm text-blue-500">忘记密码?</a>
                </div>
                <button class="btn-primary mb-4" id="login-btn">登录</button>
                <button class="btn-outline">短信验证码登录</button>
                
                <div class="text-center my-6">
                    <p class="text-gray-500">其他登录方式</p>
                </div>
                
                <div class="social-login">
                    <a href="#"><i class="fab fa-weixin text-green-500 text-xl"></i></a>
                    <a href="#"><i class="fab fa-qq text-blue-500 text-xl"></i></a>
                    <a href="#"><i class="fab fa-weibo text-red-500 text-xl"></i></a>
                </div>
            </div>
            
            <!-- 注册表单 (默认隐藏) -->
            <div id="register-form" class="mb-6 hidden">
                <div class="input-group">
                    <i class="fas fa-phone"></i>
                    <input type="tel" placeholder="请输入手机号码" maxlength="11">
                </div>
                <div class="input-group flex">
                    <i class="fas fa-shield-alt"></i>
                    <input type="text" placeholder="请输入验证码" class="flex-1">
                    <button class="ml-2 px-4 py-2 bg-gray-100 text-gray-700 rounded-md whitespace-nowrap">获取验证码</button>
                </div>
                <div class="input-group">
                    <i class="fas fa-lock"></i>
                    <input type="password" placeholder="请设置密码">
                </div>
                <div class="flex items-center mb-6">
                    <input type="checkbox" id="agree" class="mr-2">
                    <label for="agree" class="text-sm text-gray-600">我已阅读并同意<a href="#" class="text-blue-500">用户协议</a>和<a href="#" class="text-blue-500">隐私政策</a></label>
                </div>
                <button class="btn-primary">注册</button>
            </div>
        </div>
        
        <!-- 移除底部导航 -->
    </div>

    <script>
        // 切换登录和注册表单
        const loginTab = document.getElementById('login-tab');
        const registerTab = document.getElementById('register-tab');
        const loginForm = document.getElementById('login-form');
        const registerForm = document.getElementById('register-form');
        const loginBtn = document.getElementById('login-btn');
        
        loginTab.addEventListener('click', () => {
            loginTab.classList.add('active');
            registerTab.classList.remove('active');
            loginForm.classList.remove('hidden');
            registerForm.classList.add('hidden');
        });
        
        registerTab.addEventListener('click', () => {
            registerTab.classList.add('active');
            loginTab.classList.remove('active');
            registerForm.classList.remove('hidden');
            loginForm.classList.add('hidden');
        });

        // 模拟登录后跳转到角色选择
        loginBtn.addEventListener('click', () => {
            window.location.href = 'role-selection.html';
        });
    </script>
</body>
</html> 